<%@ Page Language="C#" MasterPageFile="app-frame.master" AutoEventWireup="true" CodeFile="TaskConfig.aspx.cs" 
MaintainScrollPositionOnPostback = "true" Inherits="TaskConfig" Title="App Frame" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
<script language="JavaScript" type="text/javascript" src="wysiwyg.js"></script>
<script language="JavaScript" type="text/javascript" src="TigraCalendar/calendar1.js"></script>
<script language="JavaScript" type="text/javascript" src="scripts/Task.js"></script>

<table style="width: 100%; padding-bottom:3px;" cellpadding="0" cellspacing="0" border="0" >
    <tr>
        <td>
            <asp:Label ID="lblMessage" runat="server" CssClass="defaultFont" Font-Size="X-Small" ForeColor="Black"></asp:Label>
        </td>
        <td colspan="3" style="width:1%"></td>
    </tr>
    <tr style="height:30px;">
        <td class="pgForm_title">
            <asp:Label ID="lblHeader" runat="server" Text="Task - Add"></asp:Label>
        </td>
    </tr>
    <tr>
        <td id="td_Page_ToopTip" runat="server">
        </td>
    </tr>
</table>

<div>
    <table id="TABLE1" runat="server" border="0" cellpadding="2" style="width: 100%; padding-left:10px;" cellspacing="0"  >
        <tr>
            <td valign="top"><asp:Label ID="lbl_subject" runat="server" Text="Subject" CssClass="controlLabelFont"></asp:Label></td>
            <td colspan="3"><asp:TextBox CssClass="controlFont" ID="p_task_config_subject" runat="server" style="width:87.5%;"></asp:TextBox>
                <img src="Images/star.gif" alt="Required Field" /> 
                <asp:RequiredFieldValidator ID="rfv_p_task_config_subject" runat="server" ControlToValidate="p_task_config_subject" Display="None" ErrorMessage="This is a required field." />
                <cc1:ValidatorCalloutExtender ID="vce_p_task_config_subject" runat="server" TargetControlID="rfv_p_task_config_subject" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
        </tr>
        <tr>
            <td valign ="top"><asp:Label ID="lbl_desc" runat="server" Text="Description" CssClass="controlLabelFont"></asp:Label></td>
            <td colspan="3"><asp:TextBox ID="p_task_config_desc" runat="server" Rows="3" TextMode="MultiLine" Width="87.5%"  CssClass="controlFont"></asp:TextBox></td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lbl_start_date" runat="server" Text="Start Date" CssClass="controlLabelFont"></asp:Label></td>
            <td>
                <asp:TextBox ID="p_task_config_start_date" CssClass="controlFont controlWidth" runat ="server"></asp:TextBox>
                    <cc1:CalendarExtender ID="cal1"   TargetControlID="p_task_config_start_date" CssClass="custom-calendar" runat="server"></cc1:CalendarExtender>
                    <%-- <a href="javascript:cal4.popup();"><img id="img_cal_1" src="TigraCalendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date" /></a>--%>
                    <img src="Images/star.gif" alt="Required Field" />
                    <asp:RequiredFieldValidator ID="rfv_p_task_config_start_date" runat="server" ControlToValidate="p_task_config_start_date" Display="None" ErrorMessage="This is a required field." />
                    <cc1:ValidatorCalloutExtender ID="vce_p_task_config_start_date" runat="server" TargetControlID="rfv_p_task_config_start_date" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
            <td valign="top"><asp:Label ID="lbl_priority" runat="server" Text="Priority" CssClass="controlLabelFont"></asp:Label></td>
            <td align="left"><asp:DropDownList ID="p_task_config_priority" CssClass="controlFont controlWidth" runat="server"></asp:DropDownList></td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lbl_end_date" runat="server" Text="End Date" CssClass="controlLabelFont"></asp:Label></td>
            <td>
                <asp:TextBox ID="p_task_config_finish_date" runat ="server" CssClass="controlFont controlWidth"></asp:TextBox>
                    <cc1:CalendarExtender ID="Cal2" TargetControlID="p_task_config_finish_date" CssClass="custom-calendar" runat="server"></cc1:CalendarExtender>
                    <%-- <a href="javascript:cal5.popup();"><img id="img_cal_2" src="TigraCalendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date" /></a>--%>
                    <img src="Images/star.gif" alt="Required Field" />
                    <asp:RequiredFieldValidator ID="rfv_p_task_config_finish_date" runat="server" ControlToValidate="p_task_config_finish_date" Display="None" ErrorMessage="This is a required field." />
                    <cc1:ValidatorCalloutExtender ID="vce_p_task_config_finish_date" runat="server" TargetControlID="rfv_p_task_config_finish_date" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
            <td valign="top"><asp:Label ID="lbl_total_work" runat="server" Text="Total Work" CssClass="controlLabelFont"></asp:Label></td>
            <td  valign="top">
                <asp:TextBox id="p_task_config_est_time"  Width="98" onkeypress="javascript:return onlyNumbers(this)" CssClass="controlFont controlWidth" runat="server"></asp:TextBox>
    	        <%--<input type="text" name="textfield2" id="p_task_config_est_time"  maxlength="4" onkeypress="javascript:return onlyNumbers(this)"  class="controlFont"   runat="server" Font-Names="Arial" Font-Size="8pt" Width="200px"  /> --%>
    	        <asp:DropDownList ID="p_task_config_est_freq" CssClass="controlFont" runat="server"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lbl_status" runat="server" Text="Status" CssClass="controlLabelFont"></asp:Label></td>
            <td>
                <asp:DropDownList ID="p_task_config_status" CssClass="controlFont controlWidth" runat="server"></asp:DropDownList>
                    <img src="Images/star.gif" alt="Required Field" />
                    <asp:RequiredFieldValidator ID="rfv_p_task_config_status" runat="server" ControlToValidate="p_task_config_status" Display="None" ErrorMessage="This is a required field." />
                    <cc1:ValidatorCalloutExtender ID="vce_p_task_config_status" runat="server" TargetControlID="rfv_p_task_config_status" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
            <td valign="top"><asp:Label ID="lbl_actual_work" runat="server" Text="Actual Work" CssClass="controlLabelFont"></asp:Label></td>
            <td valign="top">
                <asp:TextBox CssClass="controlFont" id="p_task_config_actual_time" onkeypress="javascript:return onlyNumbers(this)" Width="98px" runat="server"></asp:TextBox>
    	        <%--<input type="text" name="textfield2" class="controlFont" id="p_task_config_actual_time" onkeypress="javascript:return onlyNumbers(this)"  maxlength="4"   runat="server" />    --%>
    	        <asp:DropDownList ID="p_task_config_act_freq" CssClass="controlFont" runat="server"></asp:DropDownList>  
            </td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lbl_related_object" runat="server" Text="Related Object" CssClass="controlLabelFont"></asp:Label></td>
            <td>
                <asp:DropDownList ID="object_ref" CssClass="controlFont controlWidth" runat="server" OnSelectedIndexChanged="object_ref_SelectedIndexChanged" AutoPostBack="true" ></asp:DropDownList>
                    <img src="Images/star.gif" alt="Required Field" />
                    <asp:RequiredFieldValidator ID="rfv_object_ref" runat="server" ControlToValidate="object_ref" Display="None" ErrorMessage="This is a required field." />
                    <cc1:ValidatorCalloutExtender ID="vce_object_ref" runat="server" TargetControlID="rfv_object_ref" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
            <td valign="top"><asp:Label ID="lbl_completed" runat="server" Text="Completed" CssClass="controlLabelFont"></asp:Label></td>
            <td align="left" >
                <asp:TextBox CssClass="controlFont" name="p_task_config_completed" maxlength="3" onkeypress="javascript:return onlyNumbers(this)" id="p_task_config_completed" runat="server"></asp:TextBox>
                <%--<input type="text" class="controlFont" name="p_task_config_completed" maxlength="3" onkeypress="javascript:return onlyNumbers(this)"    id="p_task_config_completed" runat="server"  /> --%>
                <asp:Label ID="lbl_per" Text="%" runat="server" CssClass="controlFont" ></asp:Label>
            </td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lbl_object_record" runat="server" Text="Object Record" CssClass="controlLabelFont"></asp:Label></td>
            <td>
                <asp:TextBox ID="txt_obj_rec" runat="server" CssClass="controlFont controlWidth"></asp:TextBox>
                <asp:Image ID="imgsearch" ToolTip="Click here for Lookup Window" runat="server" ImageUrl="~/Images/search.gif" CssClass="SearchPopup" />
                    <img src="Images/star.gif" alt="Required Field" />
                    <asp:RequiredFieldValidator ID="rfv_txt_obj_rec" runat="server" ControlToValidate="txt_obj_rec" Display="None" ErrorMessage="This is a required field." />
                    <cc1:ValidatorCalloutExtender ID="vce_txt_obj_rec"  runat="server" TargetControlID="rfv_txt_obj_rec" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
            <td><asp:Label ID="lbl_owner" runat="server" CssClass="controlLabelFont" Text="Owner"></asp:Label></td>
            <td>
                <asp:TextBox ID="txt_owner_id" runat="server" CssClass="controlFont"></asp:TextBox>
                <asp:HiddenField ID="p_task_config_owner_id" runat="server" />
                <asp:Image ID="imgsearch2" runat="server" CssClass="SearchPopup" ImageUrl="~/Images/search.gif" />
            </td>
        </tr>
        <tr>
            <td valign="top"><asp:Label ID="lbl_assign_to" runat="server" Text="Assign To" CssClass="controlLabelFont"></asp:Label></td>
            <td colspan="3" valign="top">
                <asp:TextBox ID="assign_to" runat="server" CssClass="controlFont controlWidth" ></asp:TextBox>
                <asp:Image ID="imgsearch1" ToolTip="Click here for Lookup Window" runat="server" ImageUrl="~/Images/search.gif" CssClass="SearchPopup" />
                <asp:HiddenField  ID="p_taskassign_assign_to" runat="server" Value="0" />
                <a href ="#" style="" class="controlLabelFont" onclick="javascript:ShowMulti();">Multiple User</a>
                <img src="Images/star.gif" alt="Required Field" />
            </td>
        </tr>

        <tr>
            <td colspan="4" style="width:100%;">
                <div id="AssignToLable" style="display:none;vertical-align:middle" runat="server">
    	            <table cellpadding="0" cellspacing="0"  border="0" width="100%">
    	                <tr >
    	                    <td class="Dynamic_PageHeaderRow" >
    	                        <div style="width:100%; padding-left:5px;">Assign To</div>
                            </td>
                            <td style="width:1%;"></td>
                        </tr>
                    </table> 
                </div>
                <table id="div_multiple" cellpadding="3" runat="server" style="display:none" width="100%" >
                    <tr>
                        <td style="width:107px" valign="top" rowspan="2"><asp:Label ID="lbl_assign_type" runat="server" Text="Assign Type" CssClass="controlLabelFont"></asp:Label></td>
                        <td valign="top"><asp:DropDownList ID="p_taskassign_multiple"  CssClass="controlFont controlWidth" runat="server"  OnSelectedIndexChanged="p_taskassign_multiple_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td><asp:ListBox ID="LstLeft" runat="server" CssClass="controlFont controlWidth" SelectionMode="multiple" Rows="8" ></asp:ListBox></td>
                                    <td align="center" valign="middle" style="padding:5px;">
                                        <input type = "button" id = "btnMoveRight" value=">"  style="width:25px" runat="server" onclick = "javascript:fnAdditems('LstLeft','LstRight','hih_RTlistvalue')" /><br />
                                        <input type = "button" id = "btnMoveLeft" value="<" style="width:25px" runat="server"  onclick = "javascript:fnRemoveitems('LstRight','LstLeft','hih_RTlistvalue')" /><br />
                                        <input type = "button" id = "btMoveRightAll" value=">>" style="width:25px" runat="server"  onclick = "javascript:moveSelections('LstLeft','LstRight','hih_RTlistvalue')" /><br />
                                        <input type = "button" id = "btMoveLeftAll" value="<<" style="width:25px"  runat="server" onclick = "javascript:removeSelections('LstRight','LstLeft','hih_RTlistvalue')" />
                                    </td>
                                    <td><asp:ListBox ID="LstRight" CssClass="controlFont controlWidth" runat="server" SelectionMode="multiple" Rows="8"></asp:ListBox>&nbsp;<img src="Images/star.gif" alt="Required Field" /></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
   	    </tr>
    </table> 

    <div>
        <asp:HiddenField ID="hih_RTlistvalue" runat="server" />
        <asp:HiddenField ID="hih_RTlistval" runat="server" />
        <asp:HiddenField ID="hih_LFlistvalue" runat="server" />
        <asp:HiddenField ID="hih_LFlistval" runat="server" />
        <asp:HiddenField ID="hih_list" runat="server"  Value="0"/>
        <asp:HiddenField ID="tabselect" runat="server" Value="single" />
    </div>

<table style="width: 100%; padding-top:3px;" cellpadding="0" cellspacing="0" border="0" >
    <tr>
        <td id="td2" valign="top" align="left" colspan="2" style="padding:2px;">
            <span class="defaultFont" style="font-size: 8pt;">
                Fields marked with (<img src="Images/star.gif"/>) are required.
            </span>
        </td>
    </tr>
    <tr style="height:30px;">
        <td  class="Dynamic_PageHeaderRow">
            <div style="text-align:center;">
                <asp:Button ID="bt_save" Text="Save"  runat ="server" OnClientClick="javascript:if(!Validation())return false;"   OnClick="bt_save_Click" />
                <asp:Button ID="bt_save_next" Text="Save & Next"  runat ="server" OnClientClick="javascript:if(!Validation())return false;" OnClick="bt_saveNext_Click" />
                <asp:Button ID="bt_Cancel" Text="Reset" runat ="server" OnClick="bt_Cancel_Click" />
            </div>
        </td>
        <td style="width:1%"></td>
            <asp:HiddenField ID="p_task_config_af_row_id" runat="server" />
            <asp:HiddenField ID="p_assign_task_af_row_id" runat="server" />
            <asp:HiddenField ID="p_alert_status_af_row_id" runat="server" />
            <asp:HiddenField ID="p_task_obj_ref_af_row_id" runat="server" />
            <asp:HiddenField ID="p_task_config_object_ref" runat="server" />
            <asp:HiddenField ID="p_task_config_object_record_ref" runat="server" />
            <asp:HiddenField ID="p_task_config_alert_row_id" runat="server" />
            <asp:HiddenField ID="Hd_ddlselect" runat="server" />
            <asp:HiddenField ID="hd_ctrlvalues" runat ="server" />
            <asp:HiddenField ID="hd_chkCount" runat="server" />
            <asp:HiddenField id="hd_ctrlcount" runat="server" value="1" />
            <asp:HiddenField id="hihRowCount" runat ="server" value ="0" />
            <asp:HiddenField id="hihReGenCtrl" runat ="server" />
    </tr>
</table>
</div>
   <script language="JavaScript" type="text/javascript" src="scripts/TaskConfig.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
    
    </asp:Content>

     
    
    

